package com.sale.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.SysAccountManagement;
import com.sale.system.domain.SysAccountingDetail;
import com.sale.system.domain.dto.SysAccountingDetailDto;

import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023/7/12 9:28
 * @Desc: 存货核算明细
 */
public interface SysAccountingDetailMapper extends BaseMapperPlus<SysAccountingDetailMapper, SysAccountingDetail, SysAccountingDetail> {

    /**
     * 单个查询存货核算明细
     * @param inventoryAccountingId
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    List<SysAccountingDetailDto> selectAccountingDetailList(Long inventoryAccountingId);

    /**
     * 根据存货核算id删除存货核算明细
     *
     * @param inventoryAccountingId
     * @return
     */
    int deleteAccountingDetailId(long inventoryAccountingId);
}
